package timbap.visualizer.coreplugins.lib.playingrecorditem;

import timbap.visualizer.api.context.Configuration;
import timbap.visualizer.api.context.playlist.PlaylistChooser;
import timbap.visualizer.api.context.playlist.PlaylistManager;
import timbap.visualizer.api.exceptions.NoPlaylistSelectedException;
import timbap.visualizer.api.exceptions.PlaylistParserException;
import timbap.visualizer.api.model.PlaylistEntry;

import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.List;


public class EmptyPlaylistManagerImpl implements PlaylistManager {

	private int playlistSize;
	private PlaylistEntry emptyPlaylistEntry;
	
	public EmptyPlaylistManagerImpl(int pPlaylistSize) {
		super();
		playlistSize = pPlaylistSize;
		emptyPlaylistEntry = new PlaylistEntry(new File(""));
	}
	
	public int getPlaylistSize() {
		return playlistSize;
	}

	public PlaylistEntry getPlaylistEntry(int i) {
		return emptyPlaylistEntry;
	}

    public PlaylistEntry findPlaylistEntry(URI pUri) {
        return emptyPlaylistEntry;
    }

    public List<PlaylistEntry> parsePlaylist(File playlistFile)
			throws IOException, PlaylistParserException {
		// do nothing
		return null;
	}

	public void setPlaylist(List<PlaylistEntry> playlist) {
		// do nothing
	}

	public List<PlaylistEntry> getPlaylist() {
		return null;
	}

    public void init(Configuration pCfg) throws NoPlaylistSelectedException, PlaylistParserException {
        // do nothing
    }

    public PlaylistChooser getPlaylistChooser() {
        return null;
    }

    public void setPlaylistChooser(PlaylistChooser pPlaylistChooser) {
        // do nothing
    }

}
